<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <title>稻稻工厂后台管理</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap.min.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/colorpicker.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/datepicker.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/uniform.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/select2.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/matrix-style.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/matrix-media.css" />
    <link rel="stylesheet" href="/thinkphp/Public/admin/css/bootstrap-wysihtml5.css" />
    <link href="/thinkphp/Public/admin/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href='http://fonts.useso.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
    <script src="/thinkphp/Public/admin/js/jquery.min.js"></script>

</head>

<body>
<!--Header-part-->
<div id="header">
  <h1><a href="dashboard.html">Matrix Admin</a></h1>
</div>
<!--close-Header-part--> 

<!--top-Header-menu-->
<div id="user-nav" class="navbar navbar-inverse">
  <ul class="nav">
    <li  class="dropdown" id="profile-messages" ><a title="" href="#" data-toggle="dropdown" data-target="#profile-messages" class="dropdown-toggle"><i class="icon icon-user"></i>  <span class="text">Welcome <?php echo ($AdminUser); ?></span><b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a href="#"><i class="icon-user"></i> My Profile</a></li>
        <li class="divider"></li>
        <li><a href="#"><i class="icon-check"></i> My Tasks</a></li>
        <li class="divider"></li>
        <li><a href="<?php echo U('Login/index');?>"><i class="icon-key"></i> Log Out</a></li>
      </ul>
    </li>
    <li class="dropdown" id="menu-messages"><a href="#" data-toggle="dropdown" data-target="#menu-messages" class="dropdown-toggle"><i class="icon icon-envelope"></i> <span class="text">Messages</span> <span class="label label-important">5</span> <b class="caret"></b></a>
      <ul class="dropdown-menu">
        <li><a class="sAdd" title="" href="#"><i class="icon-plus"></i> new message</a></li>
        <li class="divider"></li>
        <li><a class="sInbox" title="" href="#"><i class="icon-envelope"></i> inbox</a></li>
        <li class="divider"></li>
        <li><a class="sOutbox" title="" href="#"><i class="icon-arrow-up"></i> outbox</a></li>
        <li class="divider"></li>
        <li><a class="sTrash" title="" href="#"><i class="icon-trash"></i> trash</a></li>
      </ul>
    </li>
        <li class=""><a title="" href="<?php echo U('Login/index');?>"><i class="icon icon-cog"></i> <span class="text">登录</span></a></li>
        <li class=""><a title="" href="<?php echo U('Login/outLogin');?>"><i class="icon icon-share-alt"></i> <span class="text">Logout</span></a></li>
  </ul>
</div>

<!--start-top-serch-->
<div id="search">
  <input type="text" placeholder="Search here..."/>
  <button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
</div>
<!--close-top-serch--> 

<!--sidebar-menu-->

<div id="sidebar"> <a href="#" class="visible-phone"><i class="icon icon-list"></i>Forms</a>
  <ul>
        <li>
            <a href="#"><i class="icon icon-list"></i> <span>商品</span></a>
        </li>
        <ul>
            <li><a href="<?php echo U('Goods/index');?>">列表</a></li>
            <li><a href="<?php echo U('Goods/addGoods');?>">添加</a></li>
        </ul>

        <li>
            <a href="#"><i class="icon icon-list"></i> <span>栏目</span></a>
        </li>
        <ul>
            <li><a href="<?php echo U('Cate/index');?>">列表</a></li>
            <li><a href="<?php echo U('Cate/addCate');?>">添加</a></li>
        </ul>

      <li>
          <a href="#"><i class="icon icon-list"></i> <span>后台管理</span></a>
      </li>
      <ul>
          <li><a href="<?php echo U('Manage/index');?>">人员</a></li>
          <li><a href="<?php echo U('Manage/auth');?>">权限</a></li>
      </ul>

      <li>
          <a href="#"><i class="icon icon-list"></i> <span>商户</span></a>
      </li>
      <ul>
          <li><a href="<?php echo U('BusinessMan/index');?>">商户列表</a></li>
          <li><a href="<?php echo U('BusinessMan/addMan');?>">添加商户</a></li>
          <li><a href="<?php echo U('BusinessMan/auth');?>">权限</a></li>
      </ul>

      <li><a href="buttons.html"><i class="icon icon-tint"></i> <span>Buttons &amp; icons</span></a></li>
      <li><a href="interface.html"><i class="icon icon-pencil"></i> <span>Eelements</span></a></li>
      <li class="submenu"> <a href="#"><i class="icon icon-file"></i> <span>Addons</span> <span class="label label-important">5</span></a>
      <ul>
        <li><a href="index2.html">Dashboard2</a></li>
        <li><a href="gallery.html">Gallery</a></li>
        <li><a href="calendar.html">Calendar</a></li>
        <li><a href="invoice.html">Invoice</a></li>
        <li><a href="chat.html">Chat option</a></li>
      </ul>
    </li>
    <li class="submenu"> <a href="#"><i class="icon icon-info-sign"></i> <span>Error</span> <span class="label label-important">4</span></a>
      <ul>
        <li><a href="error403.html">Error 403</a></li>
        <li><a href="error404.html">Error 404</a></li>
        <li><a href="error405.html">Error 405</a></li>
        <li><a href="error500.html">Error 500</a></li>
      </ul>
    </li>
    <li class="content"> <span>Monthly Bandwidth Transfer</span>
      <div class="progress progress-mini progress-danger active progress-striped">
        <div style="width: 77%;" class="bar"></div>
      </div>
      <span class="percent">77%</span>
      <div class="stat">21419.94 / 14000 MB</div>
    </li>
    <li class="content"> <span>Disk Space Usage</span>
      <div class="progress progress-mini active progress-striped">
        <div style="width: 87%;" class="bar"></div>
      </div>
      <span class="percent">87%</span>
      <div class="stat">604.44 / 4000 MB</div>
    </li>
  </ul>
</div>

<!--close-left-menu-stats-sidebar-->

<div id="content">
    <form action="<?php echo U('Manage/updata/id/'.$data[id]);?>" method="post">
        <div class="modal-body">
            <p>
                姓    名(登录账号)：<input type="text" size="30" name="name" value="<?php echo ($data["name"]); ?>"/>
            </p>
            <p>
                密    码：<input type="text" size="30" name="password" value="<?php echo ($data["password"]); ?>"/>
            </p>
            <p>
            <div class="row-fluid">
                <div class="span12">
                    <div class="widget-box">
                        <div class="widget-title">
                                        <span class="icon">
                                            <input type="checkbox" id="title-checkbox" name="title-checkbox" />
                                        </span>
                            <h5>权限划分</h5>
                        </div>
                        <div class="widget-content">
                            <table class="table table-bordered table-striped with-check" id="ManageUpdataTable">
                                <thead>
                                <tr>
                                    <th>模块</th>
                                    <th>添</th>
                                    <th>删</th>
                                    <th>改</th>
                                    <th>查</th>
                                    <th>特殊一</th>
                                    <th>特殊二</th>
                                    <th>特殊三</th>
                                </tr>
                                </thead>

                                <tbody>
                                <tr>
                                    <td>商品</td>
                                    <td><input type="checkbox" value="Goods/addGoods" name="auth[]"></td>
                                    <td><input type="checkbox" value="Goods/delGoods" name="auth[]"></td>
                                    <td><input type="checkbox" value="Goods/updataGoods" name="auth[]"></td>
                                    <td><input type="checkbox" value="Goods/index" name="auth[]"></td>
                                    <td><input type="checkbox" vallue="Goods/upMoreImg" name="auth[]">多图上传</td>
                                    <td><input type="checkbox" vallue="Goods/delOne" name="auth[]">多图删除</td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>栏目</td>
                                    <td><input type="checkbox" value="Cate/addCate" name="auth[]"></td>   <!--查看/添加时在一个页面完成-->
                                    <td><input type="checkbox" value="Cate/delCate" name="auth[]"></td>
                                    <td></td>
                                    <td><input type="checkbox" value="Cate/addCate" name="auth[]"></td>    <!--查看/添加时在一个页面完成-->
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>后台操作</td>
                                    <td><input type="checkbox" value="Manage/index" name="auth[]"></td>   <!--查看/添加时在一个页面完成-->
                                    <td><input type="checkbox" value="Manage/delCate" name="auth[]"></td>
                                    <td></td>
                                    <td><input type="checkbox" value="Manage/index" name="auth[]"></td>    <!--查看/添加时在一个页面完成-->
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>商户操作</td>
                                    <td><input type="checkbox" value="BusinessMan/index" name="auth[]"></td>   <!--查看/添加时在一个页面完成-->
                                    <td><input type="checkbox" value="BusinessMan/delMan" name="auth[]"></td>
                                    <td><input type="checkbox" value="BusinessMan/updataMan" name="auth[]"></td>
                                    <td><input type="checkbox" value="BusinessMan/addMan" name="auth[]"></td>    <!--查看/添加时在一个页面完成-->
                                    <td><input type="checkbox" value="BusinessMan/restMan" name="auth[]">还原</td>
                                    <td></td>
                                    <td></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

            </p>
        </div>
        <div class="modal-footer">
            <a href="#" class="btn" data-dismiss="modal">Cancel</a>
            <input type="submit" id="add-event-submit" class="btn btn-primary" value="提交">
        </div>
    </form>
</div>
<?php if(is_array($dataAuth)): foreach($dataAuth as $key=>$ro): ?><script>
        $("input[name='auth[]']").each(
            function(){
                if($(this).val()=="<?php echo ($ro); ?>")
                {
                    $(this).attr("checked","checked");
                }
            }
        );
    </script><?php endforeach; endif; ?>

<!--Footer-part-->
<div class="row-fluid">
  <div id="footer" class="span12"> 2013 &copy; Matrix Admin. More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a> </div>
</div>
<!--end-Footer-part-->

<script src="/thinkphp/Public/admin/js/matrix.form_common.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.ui.custom.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap.min.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-colorpicker.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-datepicker.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.toggle.buttons.html"></script>
<script src="/thinkphp/Public/admin/js/masked.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.uniform.js"></script>
<script src="/thinkphp/Public/admin/js/select2.min.js"></script>
<script src="/thinkphp/Public/admin/js/matrix.js"></script>
<script src="/thinkphp/Public/admin/js/wysihtml5-0.3.0.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.peity.min.js"></script>
<script src="/thinkphp/Public/admin/js/bootstrap-wysihtml5.js"></script>
<script src="/thinkphp/Public/admin/js/jquery.dataTables.min.js"></script>
<script src="/thinkphp/Public/admin/js/yanGradyJS/yanGrady.js"></script>
<script>
    $('.textarea_editor').wysihtml5();
</script>
</body>
</html>